package cn.wolfcode.wolf2w.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 攻略评论
 */

@Document("strategy_comment")
public class StrategyComment extends BaseDomain {
    private String strategyId;  //攻略(明细)id
    private String strategyTitle; //攻略标题
    private String userId;    //用户id
    private String nickname;  //用户名
    private String city;
    private int level;
    private String headImgUrl;     //头像
    private Date createTime;    //创建时间
    private String content;      //评论内容
    private int thumbupnum;     //点赞数
    private List<String> thumbuplist = new ArrayList<>();  //点赞用户id集合

    @Override
    public String toString() {
        return "StrategyComment{" + "strategyId='" + strategyId + '\'' + ", strategyTitle='" + strategyTitle + '\'' + ", userId='" + userId + '\'' + ", nickname='" + nickname + '\'' + ", city='" + city + '\'' + ", level=" + level + ", headImgUrl='" + headImgUrl + '\'' + ", createTime=" + createTime + ", content='" + content + '\'' + ", thumbupnum=" + thumbupnum + ", thumbuplist=" + thumbuplist + '}';
    }

    public String getStrategyId() {
        return strategyId;
    }

    public void setStrategyId(String strategyId) {
        this.strategyId=strategyId;
    }

    public String getStrategyTitle() {
        return strategyTitle;
    }

    public void setStrategyTitle(String strategyTitle) {
        this.strategyTitle=strategyTitle;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId=userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname=nickname;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city=city;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level=level;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl=headImgUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime=createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content=content;
    }

    public int getThumbupnum() {
        return thumbupnum;
    }

    public void setThumbupnum(int thumbupnum) {
        this.thumbupnum=thumbupnum;
    }

    public List<String> getThumbuplist() {
        return thumbuplist;
    }

    public void setThumbuplist(List<String> thumbuplist) {
        this.thumbuplist=thumbuplist;
    }
}